package com.sunny.core.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sunny.core.bean.PublicDict;
import com.sunny.core.mapper.PublicDictMapper;
import com.sunny.core.service.IPublicDictService;

@Service("publicDictService")
public class PublicDictServiceImpl extends BaseServiceImpl <PublicDict> implements IPublicDictService {
	
	@Autowired
	PublicDictMapper  publicDictMapper;
	
	public List<PublicDict> findByType(String entity){
		return publicDictMapper.findByType(entity);
	}
	
	public List<PublicDict> findMasterDictByType(String type){
		return publicDictMapper.findMasterDictByType(type);
	}

}
